package master.usefulClosures;

import master.ComplexNumber;
import master.userInterface.ComplexNumberPanel;

public class Test {
	public static void main(String [] args){
		ComplexNumber [] a = new ComplexNumber[]{
				new AnimatedComplexNumber(1,1,0.01f) ,
				new AnimatedComplexNumber(1,1,0.02f),
				new AnimatedComplexNumber(1,1,0.03f),
				new AnimatedComplexNumber(1,1,0.04f)
		};
			
		ComplexNumber d = new SumClosure(a);
		ComplexNumber.display("A + B + C = D", true, true, a);
		ComplexNumber.display("A + B + C = D", true, true, d);
		ComplexNumberPanel.startAnimation();
	}
}
